package com.brainshare.system.domain;

import java.util.ArrayList;
import java.util.List;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.brainshare.common.annotation.Excel;
import com.brainshare.common.core.domain.BaseEntity;

/**
 * 活动内容对象 sys_banner
 * 
 * @author wolong
 * @date 2023-03-13
 */
@ApiModel(value = "SysBanner", description = "活动内容对象")
public class SysBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public SysBanner()
    {
        sysBannerItemList = new ArrayList<>();
    }

    /** 活动主键 */
    @ApiModelProperty("活动主键")
    private Long bannerId;

    /** 活动名称 */
    @Excel(name = "活动名称")
    @ApiModelProperty("活动名称")
    private String name;

    /** 活动图片连接 */
    @Excel(name = "活动图片连接")
    @ApiModelProperty("活动图片连接")
    private String imgUrl;

    /** 活动类型枚举(0图片 1视频 2图文) */
    @Excel(name = "活动类型枚举(0首页顶部 1早检查)")
    @ApiModelProperty("活动类型枚举(0首页顶部 1早检查)")
    private Long bannerType;

    /** 活动类型枚举(0图片 1视频 2图文) */
    @Excel(name = "内容枚举(0图片 1视频 2图文 3文章连接)")
    @ApiModelProperty("内容枚举(0图片 1视频 2图文 3文章连接)")
    private Long contentType;

    /** 活动描述 */
    @Excel(name = "活动描述")
    @ApiModelProperty("活动描述")
    private String description;

    /** 活动内容明细信息 */
    @ApiModelProperty("活动内容明细信息")
    private List<SysBannerItem> sysBannerItemList;

    public void setBannerId(Long bannerId) 
    {
        this.bannerId = bannerId;
    }

    public Long getBannerId() 
    {
        return bannerId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }

    public Long getBannerType()
    {
        return bannerType;
    }

    public void setBannerType(Long bannerType)
    {
        this.bannerType = bannerType;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public List<SysBannerItem> getSysBannerItemList()
    {
        return sysBannerItemList;
    }

    public void setSysBannerItemList(List<SysBannerItem> sysBannerItemList)
    {
        this.sysBannerItemList = sysBannerItemList;
    }

    public Long getContentType()
    {
        return contentType;
    }

    public void setContentType(Long contentType)
    {
        this.contentType = contentType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bannerId", getBannerId())
            .append("name", getName())
            .append("imgUrl", getImgUrl())
            .append("bannerType", getBannerType())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("sysBannerItemList", getSysBannerItemList())
            .toString();
    }
}
